package com.loiot.baqi.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.loiot.baqi.controller.response.Pager;
import com.loiot.baqi.dao.BaseDao;
import com.loiot.baqi.dao.TgQqGroupDao;
import com.loiot.baqi.dao.WeiAccountQqGroupDao;
import com.loiot.baqi.service.WeiAccountQqGroupService;
import com.loiot.baqi.pojo.TgQqGroup;
import com.loiot.baqi.pojo.WeiAccountQqGroup;


/**
 * 通用service
 * 
 * @author  wangzx 
 * @creation 2016-03-21
 */
@Service("baseService")
public class BaseService{
    
    private Logger log = LoggerFactory.getLogger(this.getClass());
    
    @Resource
	public BaseDao baseDao;
    
    
    /**
     * 添加
     * 
     * @param p 参数对象
     */
    public void add(Object t)throws Exception {
         baseDao.addV1(t);
    }
    
    /**
     * 更新
     * 
     * @param p 参数对象
     */
    public void update(Object t)throws Exception {
         baseDao.updateByPkV1(t);
    }
}
